import request from "@/utils/request";

// 查询设备台账列表
export function listBill(query) {
  return request({
    url: "/equipment/book/list",
    method: "get",
    params: query,
  });
}

// 新增设备台账
export function addBill(data) {
  return request({
    url: "/equipment/book",
    method: "post",
    data: data,
  });
}

// 修改设备台账
export function updateBill(data) {
  return request({
    url: "/equipment/book",
    method: "put",
    data: data,
  });
}
//获取详情
export function detailBill(id) {
  return request({
    url: "/equipment/book/" + id,
    method: "get",
  });
}

// 删除设备台账
export function delBill(bookIds) {
  return request({
    url: "/equipment/book/" + bookIds,
    method: "delete",
  });
}
